/*
package com.example.deadletter.config;

import org.springframework.amqp.core.Binding;
import org.springframework.amqp.core.BindingBuilder;
import org.springframework.amqp.core.DirectExchange;
import org.springframework.amqp.core.Queue;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

*/
/**
 * @author tianzhuang
 * @version 1.0
 * @date 2021/11/10 16:00
 *//*

@Configuration
public class RabbitmqConfig {

    @Value("${sunspring.order.queue}")
    private String orderQueue;

    @Value("${sunspring.order.exchange}")
    private String orderExchange;

    @Value("${sunspring.order.routingKey}")
    private String orderExchangeRoutingKey;

    @Value("${sunspring.dlx.queue}")
    private String dlxQueue;

    @Value("${sunspring.dlx.exchange}")
    private String dlxExchange;

    @Value("${sunspring.dlx.routingKey}")
    private String dlxExchangeRoutingKey;


    */
/**
     * 创建order队列
     *
     * @return
     *//*

    @Bean
    public Queue createOrderQueue() {
        return new Queue(orderQueue);
    }

    */
/**
     * 创建交换机
     * @return
     *//*

    @Bean
    public DirectExchange createOrderExchange() {
        return new DirectExchange(orderExchange);
    }

    */
/**
     * 将交换机和队列绑定
     * @return
     *//*

    @Bean
    public Binding orderBind() {
        return BindingBuilder.bind(createOrderQueue()).to(createOrderExchange()).with(orderExchangeRoutingKey);
    }



}
*/
